<%@page import="com.edu.data.News" %>
<%@page import="java.util.ArrayList" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
    String ctx=request.getContextPath();
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台管理 - 易买网</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/scripts/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/scripts/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/scripts/function.js"></script>
</head>
<body>
<jsp:include page="top.jsp"/>
<div id="main" class="wrap">
    <jsp:include page="leftbar.jsp"/>
    <c:set var="i" value="0"></c:set>
    <div class="main">
        <h2>新闻管理</h2>
        <div class="manage">
            <table class="list">
                <tr>
                    <th>编号</th>
                    <th>新闻标题</th>
                    <th>操作</th>
                </tr>
                <c:forEach items="${news}" var="news">
                    <c:set var="i" value="${i+1}"></c:set>
                    <tr>
                        <td class="first w4 c"><c:out value="${i}" /></td>
                        <td class="c"><c:out value="${news.enTitle}"/></td>
                        <td class="c"><a href="${pageContext.request.contextPath}/news/readNews?entityId=${news.enId}">修改</a>
                            <div class="manageDel">
                                <a self_url="${pageContext.request.contextPath}/news/delNews?entityId=${news.enId}">删除</a></div>
                        </td>
                    </tr>
                </c:forEach>
            </table>
            <div class="pager">
                <ul class="clearfix">
<%--                    <li><a href="<%=ctx%>/manage/News?page=0"><span>首页</span></a></li>--%>
<%--                    <li <c:if test="${!page.hasPre}"> class="disabled"</c:if>><a href="<%=ctx%>/manage/News?page=${page.start-page.pageSize}"><span>上一页</span></a></li>--%>
<%--                    <li <c:if test="${!page.hasNext}"> class="disabled"</c:if>><a href="<%=ctx%>/manage/News?page=${page.start+page.pageSize}"><span>下一页</span></a></li>--%>
<%--                    <li><a href="<%=ctx%>/manage/News?page=${page.last}"><span>尾页</span></a></li>--%>
                </ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">Copyright &copy; 2013 XXX All Rights Reserved.
    京ICP证1000001号
</div>
</body>
</html>
